<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-2.1.3.js"></script>
<link rel="stylesheet" type="text/css" href="js/GRCJS/CHDataPrint/CHDataPrint.css"></link>

<title>demo</title>

</head>
<body>
	<div id="div1"></div>
	<div id="div2"></div>

<script type="text/javascript">
	$(document).ready(function(){
		$('#div1').dataPrint({
			orderSize: 3,
			
			orderId: '1',
			
			orderWidth: '300px',
			
			orderHeight: ['300px', '200px', '100px'],
			
			orderHeader: ['显示表单1','显示表单2','显示表单3'],
			
			textList: [
			          	[{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			},{
				'label': '订单号1',
				'content': '123'
			}],
			[{
				'label': '订单号2',
				'content': '123'
			},{
				'label': '订单号2',
				'content': '123'
			},{
				'label': '订单号2',
				'content': '123'
			},{
				'label': '订单号2',
				'content': '123'
			},{
				'label': '订单号2',
				'content': '123'
			},{
				'label': '订单号2',
				'content': '123'
			}],
			[{
				'label': '订单号3',
				'content': '123'
			},{
				'label': '订单号3',
				'content': '123'
			},{
				'label': '订单号3',
				'content': '123'
			},{
				'label': '订单号3',
				'content': '123'
			},{
				'label': '订单号3',
				'content': '123'
			},{
				'label': '订单号3',
				'content': '123'
			}]
			          	]
		});
		
		$('#div2').dataPrint({
			orderSize: 1,
			orderId: '1',
			orderWidth: '300px',
			
			orderHeight: '400px',
			
			orderHeader: ['显示表单'],
			
		}); 

	});
	
</script>
	
<script type="text/javascript" src="js/GRCJS/CHDataPrint/jquery.dataPrint.js"></script>
</body>
</html>